﻿<%@ Page Title="仓位列表" Language="C#" MasterPageFile="~/User/User.Master" AutoEventWireup="true" CodeBehind="ZL_CW_Query.aspx.cs" Inherits="CoolERP_Web.User.ZL_CW_Query" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td class=tbHead_L></td>
        <td class=tbHead_M></td>
        <td class=tbHead_R></td>
    </tr>
    <tr>
        <td class=tbBody_L></td>
        <td class=tbBody_M>
            <ul class=tags style="width:100%;">
                <li class=liTitle><div>仓位列表</div></li>
                <li class=liRight><asp:ImageButton ID="btnAdd" runat="server" Visible=false ImageUrl="~/Images/Common/btn_add0.png" OnClick="btnAdd_Click" /></li>
            </ul>
        <asp:GridView ID="GridView1" Width=100% DataKeyNames="ID" runat="server" CssClass="grvCSS" AutoGenerateColumns="False" AllowPaging="True"
            PageSize=20 ClientIDMode=Static OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" 
            OnRowUpdating="GridView1_RowUpdating" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDataBound="GridView1_RowDataBound">
            <Columns>
                <asp:TemplateField HeaderText="序号" ItemStyle-Width=50px>
                    <ItemTemplate><%# Container.DataItemIndex + 1%></ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="仓库">
                    <ItemTemplate><asp:Literal ID="liCK" runat=server></asp:Literal></ItemTemplate>
                    <EditItemTemplate><asp:DropDownList runat=server ID="ddlCK"/></EditItemTemplate>
                    <FooterTemplate><asp:DropDownList runat=server ID="ddlCK"/></FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="区">
                    <ItemTemplate><%# Eval("QU")%></ItemTemplate>
                    <EditItemTemplate><asp:TextBox ID="txtQU" runat="server" Text='<%# Eval("QU")%>' Width=60px/></EditItemTemplate>
                    <FooterTemplate><asp:TextBox ID="txtQU" runat="server" Width=60px/></FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="行">
                    <ItemTemplate><%# Eval("HANG") == null ? "0" : Eval("HANG")%></ItemTemplate>
                    <EditItemTemplate><asp:TextBox ID="txHANG" runat="server" Text='<%# Eval("HANG")%>' Width=60px/></EditItemTemplate>
                    <FooterTemplate><asp:TextBox ID="txtHANG" runat="server" Width=60px/></FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="列">
                    <ItemTemplate><%# Eval("LIE") == null ? "0" : Eval("LIE")%></ItemTemplate>
                    <EditItemTemplate><asp:TextBox ID="txtLIE" runat="server" Text='<%# Eval("LIE")%>' Width=60px/></EditItemTemplate>
                    <FooterTemplate><asp:TextBox ID="txtLIE" runat="server" Width=60px/></FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="层">
                    <ItemTemplate><%# Eval("CENG") == null ? "0" : Eval("CENG")%></ItemTemplate>
                    <EditItemTemplate><asp:TextBox ID="txtCENG" runat="server" Text='<%# Eval("CENG")%>' Width=60px/></EditItemTemplate>
                    <FooterTemplate><asp:TextBox ID="txtCENG" runat="server" Width=60px/></FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="格">
                    <ItemTemplate><%# Eval("GE") == null ? "0" : Eval("GE")%></ItemTemplate>
                    <EditItemTemplate><asp:TextBox ID="txtGE" runat="server" Text='<%# Eval("GE")%>' Width=60px/></EditItemTemplate>
                    <FooterTemplate><asp:TextBox ID="txtGE" runat="server" Width=60px/></FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="False" ItemStyle-Width=150px Visible=false>
                    <ItemTemplate>
                    <asp:ImageButton ID="btnEdit" runat="server" ImageUrl="~/Images/Common/btn_edit0.png" CommandName="Edit" />&nbsp;
                    <asp:ImageButton ID="btnDel" runat="server" ImageUrl="~/Images/Common/btn_del0.png" CommandName="Delete" OnClientClick="return confirm('确定要删除吗？');" /></ItemTemplate>
                    <EditItemTemplate><asp:HiddenField ID="hidField" runat=server />
                    <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/Common/btn_save0.png" CommandName="Update" />&nbsp;
                    <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/Images/Common/btn_cancel0.png" CommandName="Cancel" />
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/Common/btn_save0.png" OnClick="btnSave_Click" />&nbsp;
                        <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/Images/Common/btn_cancel0.png" OnClick="btnCancel_Click" />
                    </FooterTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerSettings Visible=false />
            </asp:GridView>
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CssClass="pager" UrlPaging="false" ShowCustomInfoSection="Left"
                FirstPageText="首页" LastPageText="尾页" PrevPageText="前页" NextPageText="后页" OnPageChanged="AspNetPager1_PageChanged" 
                TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" PageIndexBoxType="TextBox" ShowPageIndexBox="Always" 
                SubmitButtonText="Go" CustomInfoHTML="共%RecordCount%条数据，每页%PageSize%条，共%PageCount%页，当前为第%CurrentPageIndex%页">
            </webdiyer:AspNetPager>
            <asp:Panel ID="panMsg" runat="server" ClientIDMode=Static CssClass="msg24_attention" Visible=false>无相关数据</asp:Panel>
        </td>
        <td class=tbBody_R></td>
    </tr>
    <tr>
        <td class=tbFoot_L></td>
        <td class=tbFoot_M></td>
        <td class=tbFoot_R></td>
    </tr>
</table>
</asp:Content>
